function makeHttpObject() {
	try {return new XMLHttpRequest();}
	catch (error) {}
	try {return new ActiveXObject("Msxml2.XMLHTTP");}
	catch (error) {}
	try {return new ActiveXObject("Microsoft.XMLHTTP");}
	catch (error) {}
	throw new Error("Could not create HTTP request object.");
}

function requestFromUrl(strUrl){
	var request = makeHttpObject();
	request.open("GET", strUrl, false);
	request.send(null);
	return request.responseText;
}